package org.mixed.config;

import org.mixed.core.registry.dynamic.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class MixRegistryConfiguration {
//    @Bean
//    public DynamicDataSource dynamicDataSource() {
//        return new DynamicDataSource();
//    }

    @Bean
    public ApiDynamicRegistry apiDynamicRegistry() {
        return new ApiDynamicRegistry();
    }

    @Bean
    public FunctionDynamicRegistry functionDynamicRegistry() {
        return new FunctionDynamicRegistry();
    }

//    @Bean
//    public DataSourceDynamicRegistry dataSourceDynamicRegistry(DynamicDataSource dynamicDataSource) {
//        return new DataSourceDynamicRegistry(dynamicDataSource);
//    }

    @Bean
    public ComponentDynamicRegistry componentDynamicRegistry() {
        return new ComponentDynamicRegistry();
    }

    @Bean
    public TaskDynamicRegistry taskDynamicRegistry() {
        return new TaskDynamicRegistry();
    }

}
